package com.fwfc.bosy.applearn;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {

    private Button btnTest,btnTwo;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        btnTest=(Button)findViewById(R.id.btnTest);
        btnTwo= (Button) findViewById(R.id.btnTwo);

        btnTwo.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //Logger.d("lsh");
                System.out.println("lsh");
                GetData();
            }
        });
    }

    public void GetData()
    {
        System.out.println("成功");
    }


}
